﻿namespace WCFHost
{
    using HuaWei;
    using System;
    using System.ServiceModel;

    internal class Program
    {
        private static void Main(string[] args)
        {
            ServiceHost host = new ServiceHost(typeof(WCFService), new Uri[0]);
            try
            {
                host.Open();
                Console.WriteLine("OK");
                Console.ReadLine();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message);
            }
            finally
            {
                if (host != null)
                {
                    ((IDisposable) host).Dispose();
                }
            }
        }
    }
}

